package model

import "gorm.io/gorm"

// FinishedProduct /** 成品
type FinishedProduct struct {
	gorm.Model
	ProductBrand    string  `gorm:"column:product_brand" form:"productBrand" json:"productBrand"`   //品牌
	ProductName     string  `gorm:"column:product_name" form:"productName" json:"productName"`      //商品
	Specification   float32 `gorm:"column:specification" form:"specification" json:"specification"` //规格
	InventoryNumber float32 `gorm:"column:inventory_number" form:"inventoryNumber" json:"inventoryNumber"`
	InventoryWeight float32 `gorm:"column:inventory_weight" form:"inventoryWeight" json:"inventoryWeight"`
	Test            int     `gorm:"check:(test >0)" form:"test" json:"test" `
	Remark          string  `gorm:"column:remark" form:"remark" json:"remark"`
}
